# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
_php=php7
pkgname=${_php}-pear-mail_mime
_realname=Mail_Mime
pkgver=1.10.4
pkgrel=0
pkgdesc="Mail_Mime provides classes to create MIME messages"
url="http://pear.php.net/package/Mail_Mime/"
arch="noarch"
license="BSD-3-Clause"
depends="${_php}-pear"
options="!check" # No testsuite
source="http://download.pear.php.net/package/$_realname-$pkgver.tgz"
builddir="$srcdir"/$_realname-$pkgver

package() {
	_phpdir="usr/share/${_php}"
	install -d "$pkgdir"/$_phpdir/PEAR && \
		cp -R Mail "$pkgdir"/$_phpdir/PEAR
	install -d "$pkgdir"/$_phpdir/doc/$_realname/ && \
		cp -R scripts "$pkgdir"/$_phpdir/doc/$_realname
	install -d "$pkgdir"/$_phpdir/test/$_realname && \
		cp -R tests "$pkgdir"/$_phpdir/test/$_realname
}

sha512sums="6e58e1078292cf43605313e2402b60deb97be0b56c8eb5dbbb501cf92ca836ca4bdbc9e1ab878c89f8e59941962a91b73dd917c8e678f0944f271e5537f065e5  Mail_Mime-1.10.4.tgz"
